package cn.cdiothree.service;

import cn.cdiothree.dataobject.ActivityApply;
import cn.cdiothree.vo.ActivityApplyVO;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * 活动报名服务类
 */
public interface ActivityApplyService extends IService<ActivityApply> {
    /**
     * 活动报名
     * @param activityApply
     * @return
     */
    ActivityApply create(ActivityApply activityApply);

    /**
     * 根据userId查询已报名的活动
     * @param userId
     * @return
     */
    List<ActivityApplyVO> findList(Integer userId);
}
